home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Developer Kits / Arrange Developer Kit / Examples / Generic Plugin / GenericPlugin.r < prev   
Encoding:
Text File  |  1994-07-15  |  1.8 KB  |  61 lines  |  [TEXT/MPS ]

  1. #include "ArrangeModule.r.h"
  2.  
  3. /* This is the Rez input file for a "generic" plugin module.  For simple
  4.  * plugins, the only necessary customization should be to insert proper
  5.  * values for the ModuleName and ModuleID macros.  Each module you create
  6.  * should have a different value for ModuleID.  Contact CKI to get a range
  7.  * of IDs assigned for your use.
  8.  * 
  9.  * This version of GenericPlugin.r was written by Steve Newman on 12/24/93.
  10.  * Last updated 7/15/94.
  11.  */
  12.  
  13. #define ModuleName    "Your name here"        // Unique module name
  14. #define ModuleID         0x70000000                // Unique module ID
  15. #define ModuleRsrcID -0x8000                    // Base resource ID (needn't be unique)
  16. #define BuildDate    0                            // Replace with current build date
  17.  
  18.  
  19. resource ModuleDefType (ModuleRsrcID, ModuleName, preload, locked)
  20.     {
  21.     keepLocked,                // Module's code resources should always be locked (don't
  22.                                 // lock and unlock for each call)
  23.     loadAtBoot,                // Load the module when Arrange is launched
  24.     ModuleName,                // Unique module name
  25.     ModuleID,                // Unique module ID
  26.     0x00000000,                // Module version
  27.     BuildDate,                // Date when this module was built
  28.     ArrangeAppID,            // Target application (Arrange)
  29.     0x00000700,                // Target system version (7.0.0)
  30.     ArrangePonsVers,        // Target app version (Arrange 2.0)
  31.     0                            // relative ID of root code resource
  32.     };
  33.  
  34.  
  35. // ALRT resource for our plug-in about box
  36. resource 'ALRT' (ModuleRsrcID, purgeable)
  37. {
  38.     {90, 60, 210, 450},
  39.     ModuleRsrcID,
  40.         {    
  41.         OK, visible, silent,
  42.         OK, visible, silent,
  43.         OK, visible, silent,
  44.         OK, visible, silent
  45.         }
  46. #if SystemSevenOrLater
  47.     ,alertPositionMainScreen
  48. #endif
  49. };
  50.  
  51.  
  52. // DITL resource for our plug-in about box
  53. resource 'DITL' (ModuleRsrcID)
  54. {
  55.     {    
  56.         {90, 315, 110, 375},    Button     {enabled, "OK"},
  57.         {10,  70,  70, 370},    StaticText {disabled, "Generic Plugin 1.0."},
  58.         {10,  20,  40,  50},    Icon       {disabled, 0}
  59.     }
  60. };
  61.